package com.market.controller;

import com.market.common.vo.ResponseResult;

import com.market.entity.Cannibalize;
import com.market.service.CannibalizeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/canniba")
public class CannibalizeContorller {
    @Resource
    CannibalizeService cannibalizeService;
    //查询调拨单
    @GetMapping("/getCannibalize")
    public ResponseResult<List<Cannibalize>> getCannibalize(){
    return ResponseResult.success(cannibalizeService.findCannibalize());
    }
}
